<template>
	
	<form @submit="submit" :data-action="`/api/modifyRecord/save?stationId=${param.id}`">
			
			<view class="fixAuto bb middle">
				<view class="w100">
					仪器名称
				</view>
				<view>
					<input type="text" name="x.construmentName|仪器名称|0~200" placeholder="请输入仪器名称">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					参数名称
				</view>
				<view>
					<input type="text" name="x.paramName|参数名称|0~200" placeholder="请输入参数名称">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					原始值
				</view>
				<view>
					<input type="number" name="x.originValue|原始值|amount" placeholder="请输入原始值">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					修改值
				</view>
				<view>
					<input type="number" name="x.modifyValue|修改值|amount" placeholder="请输入修改值">
				</view>
			</view>
			<view class="fixAuto bb middle">
				<view class="w100">
					修改原因
				</view>
				<view>
					<input type="text" name="x.modifyReason|修改原因|0~200" placeholder="请输入修改原因">
				</view>
			</view>
			
			<view class="plr100 pd30">
				<button form-type="submit" class="btn block rds23">
					保存记录
				</button>
			</view>
		</form>

	</layout>
</template>

<script>
	export default {
		data() {
			return {
				param:{id:""} ,
			}
		},
		onLoad(params) {
			this.param = params ;
		},
		methods: {
			
			submit:function(e){
				this.form.submit(e , this.success);
			},
			
			success:function(e){
				this.kit.goSuccessBack("保存成功");
			}
		}
	}
</script>
<style>
	page{
		background-color: #fff;
	}
</style>